package com.guducat.collegeWeb.entity;

import lombok.Getter;
import lombok.Setter;

import java.time.ZonedDateTime;

@Setter
@Getter
public class Article {

    private int newsId;
    private String category; // 简化为category（对应数据库category字段）
    private String title;    // 简化为title（对应数据库title字段）
    private ZonedDateTime pubTime;
    private String contentHtml; // 对应content_html
    private String contentText; // 新增content_text
    private String url;
    private ZonedDateTime crawlTime;
    private String section; // 学院/教务处等行政机构信息

    @Override
    public String toString() {
        return "Article{" +
                "newsId=" + newsId +
                ", category='" + category + '\'' +
                ", title='" + title + '\'' +
                ", pubTime=" + pubTime +
                ", contentHtml='" + contentHtml + '\'' +
                ", contentText='" + contentText + '\'' +
                ", url='" + url + '\'' +
                ", crawlTime=" + crawlTime +
                ", section='" + section + '\'' +
                '}';
    }
}
